import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "./axios.js";
import Element from "element-ui"
import 'animate.css';
import "element-ui/lib/theme-chalk/index.css"
import './utils/dialog'
import VueCookies from 'vue-cookies'
import './permission' // permission control
import dayjs from "dayjs"
import "./assets/main.css";
Vue.config.productionTip = false
// require("./mock.js")
Vue.use(Element)
Vue.use(VueCookies)
import * as echarts from 'echarts';//引入echarts
Vue.prototype.$echarts = echarts; //引入组件

Vue.prototype.getPlaces = function () {// 基地数据
  return [{ id: 1, name: '南海基地' }, { id: 2, name: '三水基地' }, { id: 3, name: '山东基地' }];
}
Vue.prototype.getDeviceTypes = function () {// 设备类型
  return [{ id: 1, name: '电表' }, { id: 2, name: '水表' }, { id: 3, name: '气表' }];
}
Vue.prototype.dayjs = dayjs;//可以全局使用dayjs
Vue.prototype.$axios = axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
